home *** CD-ROM | disk | FTP | other *** search
- 10 rem--ahoy--mar issue--random files---prog page 37
- 100 open15,8,15,"i"
- 110 open5,8,5,"#"
- 120 print"[147]entere track,sector(enter 0,0 to end):"
- 130 inputt,s
- 135 ift=0ands=0then300
- 140 ift<1ort>35thenprint"track must be from 1 to 35":goto120
- 150 ifs<0ors>20thenprint"sector must be from 0 to 20":goto120
- 160 ift>30ands>16thenprint"track"t"contains sectors 0 to 16":goto120
- 170 ift>24ands>17thenprint"track"t"contains sectors 0 to 17":goto120
- 180 ift>17ands>18thenprint"track"t"contains sectors 0 to 18":goto120
- 200 rem ** read data from block **
- 210 print#15,"u1:"5;0;t;s
- 220 forx=0to255:get#5,a$:poke212,1
- 225 ifasc(a$+chr$(0))<32thenpoke212,0:print"";:a$=chr$(asc(a$+chr$(0))+64)
- 230 printa$;:poke212,0:print"[146]";:next
- 240 poke212,0:print:print"disk status:"
- 250 input#15,a,b$,c,d:printa,b$,c,d
- 260 print"hit a key to continue"
- 270 geta$:ifa$=""then270
- 280 goto120
- 300 close5:close15
-